﻿using System.Windows.Controls;

namespace NDasm.Core.UI.MethodDasm
{
    public partial class MethodView : UserControl
    {
        public MethodView()
        {
            InitializeComponent();
        }

        private void InstructionSelected(object sender, SelectionChangedEventArgs e)
        {
            var listBox = (ListBox)sender;
            listBox.ScrollIntoView(listBox.SelectedItem);
        }
    }
}
